// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router' // 路由
import store from '@/store/index.js' // vuex
import Vant from 'vant'; // vant框架
import 'vant/lib/index.css';// vant框架样式
import api from '@/api/index.js' // api 接口
import '../static/font/iconfont.css'
import Cookie from 'js-cookie' //引入js-cookie
// ElementUI 的
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


// api接口 挂载在vue的原型空间上
Vue.prototype.$api = api
//引入js-cookie
Vue.prototype.$cookie = Cookie;

// 在main.js中引入request.js
import request from '@/utils/request.js'
// 把get请求和post请求封装到Vue的原型空间中

Vue.prototype.$get = request.get;
Vue.prototype.$post = request.post;
Vue.config.productionTip = false
Vue.use(Vant);// 导入vant


/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
